const path = require("path")

module.exports = {
    mode: "development",
    entry: "./index.js",
    output: {
        filename: "bundle.js",
        path: path.resolve(__dirname, "dist") 
    },
    devtool: "source-map",
    module: {
        rules: [
            {
                test: /\.js|\.ts|\.tsx$/,
                use: "babel-loader",
                exclude: /node_modules/
            }
        ]
    }
}